package gang.org.springframework.framework.bean;

import gang.org.springframework.framework.beans.GangAbstractNestablePropertyAccessor;

/**
 * 业务意义
 * 1）
 * @author gang.chen
 * @description
 * @Date 2021/8/26 8:06
 */
public class GangBeanWrapperIml extends GangAbstractNestablePropertyAccessor implements GangBeanWrapper{


    public GangBeanWrapperIml(){
        this(true);
    }

    /**
     * 创建一个新的BeanWrapperImpl
     * */
    public GangBeanWrapperIml(Object object) {
        super(object);
    }

    //TODO
    public GangBeanWrapperIml(boolean registerDefaultEditors) {
        super(registerDefaultEditors);
    }

    /**
     * 业务意义?
     *
     * */
    public void setBeanInstance(Object object){
        this.wrappedObject = object;
        this.rootObject = object;
        //TODO
        //this.typeConverterDelegate
        //setIntrospectionClass()
    }


    @Override
    public Class<?> getWrappedClass() {
        return getWrappedInstance().getClass();
    }
}
